package fr.aprr.geoloc.client.presenser;

import com.google.gwt.user.client.ui.IsWidget;
import com.mvp4g.client.annotation.Presenter;
import com.mvp4g.client.presenter.BasePresenter;

import fr.aprr.geoloc.client.AppEventBus;
import fr.aprr.geoloc.client.presenser.interfaces.ITabView;
import fr.aprr.geoloc.client.view.TabPaneView;

@Presenter(view = TabPaneView.class)
public class TabPresenser extends BasePresenter<ITabView, AppEventBus> {
	
	public void onStart(){
		eventBus.addRootTab(view);
	};
	
	public void onAdd2Tab(IsWidget view){
		this.view.addWidget2Layout(view);
	}
	
	public void onAddNewTab(String view){
		this.view.addNewTab(view);
	}
}
